package org.wheel.plugins.toolkit.fieldrole;

import lombok.RequiredArgsConstructor;
import org.wheel.plugins.toolkit.sql.spi.FieldRoleSpi;

import java.util.Map;
import java.util.Set;

@RequiredArgsConstructor
public class DefaultFieldRoleSpi implements FieldRoleSpi {

    private final FieldRoleProperties properties;

    @Override
    public Map<String, Set<String>> loadRoles() {
        return properties.toRoleMap();
    }
}